From 460804a604386aab8a66558f57a82ab388211b67 Mon Sep 17 00:00:00 2001
From: jchadwick-buf <116005195+jchadwick-buf@users.noreply.github.com>
Date: Wed, 20 Nov 2024 13:51:16 -0500
Subject: [PATCH] Fixes for complex predefined field types (#210)
Updates the protovalidate version to 0.8.2 and fixes three
closely-related bugs:
- `rule` is inadvertently typed incorrectly when it is a repeated rule
field on a repeated field
- `getCELType` inadvertently returns an incorrectly-named message type
when dealing with a message field (using the full name of the field
instead of the full name of the type)
- `getCELType` returns a message type instead of a wrapper type for
wrappers like `google.protobuf.Int32Value`
These bugs are subtle because they don't occur in normal circumstances,
but the new predefined rule tests added in v0.8.2 to close the bugs on
protovalidate-go inadvertently revealed several protovalidate-java bugs.
This validates that more work on the conformance test can still be quite
valuable in finding difficult bugs, even if we don't know exactly what
we're looking for.
---
.../PredefinedAndCustomRuleEdition2023.java | 40 +-
...inedAndCustomRuleEdition2023OrBuilder.java | 4 +-
.../cases/PredefinedAndCustomRuleProto2.java | 40 +-
...redefinedAndCustomRuleProto2OrBuilder.java | 4 +-
.../cases/PredefinedAndCustomRuleProto3.java | 30 +-
...redefinedAndCustomRuleProto3OrBuilder.java | 2 +-
...nedRepeatedWrappedBoolRuleEdition2023.java | 719 ++++++++++++++++++
...edWrappedBoolRuleEdition2023OrBuilder.java | 35 +
...edefinedRepeatedWrappedBoolRuleProto2.java | 719 ++++++++++++++++++
...epeatedWrappedBoolRuleProto2OrBuilder.java | 35 +
...edefinedRepeatedWrappedBoolRuleProto3.java | 719 ++++++++++++++++++
...epeatedWrappedBoolRuleProto3OrBuilder.java | 35 +
...edRepeatedWrappedBytesRuleEdition2023.java | 719 ++++++++++++++++++
...dWrappedBytesRuleEdition2023OrBuilder.java | 35 +
...definedRepeatedWrappedBytesRuleProto2.java | 719 ++++++++++++++++++
...peatedWrappedBytesRuleProto2OrBuilder.java | 35 +
...definedRepeatedWrappedBytesRuleProto3.java | 719 ++++++++++++++++++
...peatedWrappedBytesRuleProto3OrBuilder.java | 35 +
...dRepeatedWrappedDoubleRuleEdition2023.java | 719 ++++++++++++++++++
...WrappedDoubleRuleEdition2023OrBuilder.java | 35 +
...efinedRepeatedWrappedDoubleRuleProto2.java | 719 ++++++++++++++++++
...eatedWrappedDoubleRuleProto2OrBuilder.java | 35 +
...efinedRepeatedWrappedDoubleRuleProto3.java | 719 ++++++++++++++++++
...eatedWrappedDoubleRuleProto3OrBuilder.java | 35 +
...edRepeatedWrappedFloatRuleEdition2023.java | 719 ++++++++++++++++++
...dWrappedFloatRuleEdition2023OrBuilder.java | 35 +
...definedRepeatedWrappedFloatRuleProto2.java | 719 ++++++++++++++++++
...peatedWrappedFloatRuleProto2OrBuilder.java | 35 +
...definedRepeatedWrappedFloatRuleProto3.java | 719 ++++++++++++++++++
...peatedWrappedFloatRuleProto3OrBuilder.java | 35 +
...edRepeatedWrappedInt32RuleEdition2023.java | 719 ++++++++++++++++++
...dWrappedInt32RuleEdition2023OrBuilder.java | 35 +
...definedRepeatedWrappedInt32RuleProto2.java | 719 ++++++++++++++++++
...peatedWrappedInt32RuleProto2OrBuilder.java | 35 +
...definedRepeatedWrappedInt32RuleProto3.java | 719 ++++++++++++++++++
...peatedWrappedInt32RuleProto3OrBuilder.java | 35 +
...edRepeatedWrappedInt64RuleEdition2023.java | 719 ++++++++++++++++++
...dWrappedInt64RuleEdition2023OrBuilder.java | 35 +
...definedRepeatedWrappedInt64RuleProto2.java | 719 ++++++++++++++++++
...peatedWrappedInt64RuleProto2OrBuilder.java | 35 +
...definedRepeatedWrappedInt64RuleProto3.java | 719 ++++++++++++++++++
...peatedWrappedInt64RuleProto3OrBuilder.java | 35 +
...dRepeatedWrappedStringRuleEdition2023.java | 719 ++++++++++++++++++
...WrappedStringRuleEdition2023OrBuilder.java | 35 +
...efinedRepeatedWrappedStringRuleProto2.java | 719 ++++++++++++++++++
...eatedWrappedStringRuleProto2OrBuilder.java | 35 +
...efinedRepeatedWrappedStringRuleProto3.java | 719 ++++++++++++++++++
...eatedWrappedStringRuleProto3OrBuilder.java | 35 +
...dRepeatedWrappedUInt32RuleEdition2023.java | 719 ++++++++++++++++++
...WrappedUInt32RuleEdition2023OrBuilder.java | 35 +
...efinedRepeatedWrappedUInt32RuleProto2.java | 719 ++++++++++++++++++
...eatedWrappedUInt32RuleProto2OrBuilder.java | 35 +
...efinedRepeatedWrappedUInt32RuleProto3.java | 719 ++++++++++++++++++
...eatedWrappedUInt32RuleProto3OrBuilder.java | 35 +
...dRepeatedWrappedUInt64RuleEdition2023.java | 719 ++++++++++++++++++
...WrappedUInt64RuleEdition2023OrBuilder.java | 35 +
...efinedRepeatedWrappedUInt64RuleProto2.java | 719 ++++++++++++++++++
...eatedWrappedUInt64RuleProto2OrBuilder.java | 35 +
...efinedRepeatedWrappedUInt64RuleProto3.java | 719 ++++++++++++++++++
...eatedWrappedUInt64RuleProto3OrBuilder.java | 35 +
.../cases/PredefinedRulesProto2Proto.java | 551 ++++++++++----
.../cases/PredefinedRulesProto3Proto.java | 392 ++++++++--
.../PredefinedRulesProtoEditionsProto.java | 599 ++++++++++-----
.../PredefinedWrappedBoolRuleEdition2023.java | 558 ++++++++++++++
...edWrappedBoolRuleEdition2023OrBuilder.java | 26 +
.../PredefinedWrappedBoolRuleProto2.java | 558 ++++++++++++++
...definedWrappedBoolRuleProto2OrBuilder.java | 26 +
.../PredefinedWrappedBoolRuleProto3.java | 558 ++++++++++++++
...definedWrappedBoolRuleProto3OrBuilder.java | 26 +
...PredefinedWrappedBytesRuleEdition2023.java | 558 ++++++++++++++
...dWrappedBytesRuleEdition2023OrBuilder.java | 26 +
.../PredefinedWrappedBytesRuleProto2.java | 558 ++++++++++++++
...efinedWrappedBytesRuleProto2OrBuilder.java | 26 +
.../PredefinedWrappedBytesRuleProto3.java | 558 ++++++++++++++
...efinedWrappedBytesRuleProto3OrBuilder.java | 26 +
...redefinedWrappedDoubleRuleEdition2023.java | 558 ++++++++++++++
...WrappedDoubleRuleEdition2023OrBuilder.java | 26 +
.../PredefinedWrappedDoubleRuleProto2.java | 558 ++++++++++++++
...finedWrappedDoubleRuleProto2OrBuilder.java | 26 +
.../PredefinedWrappedDoubleRuleProto3.java | 558 ++++++++++++++
...finedWrappedDoubleRuleProto3OrBuilder.java | 26 +
...PredefinedWrappedFloatRuleEdition2023.java | 558 ++++++++++++++
...dWrappedFloatRuleEdition2023OrBuilder.java | 26 +
.../PredefinedWrappedFloatRuleProto2.java | 558 ++++++++++++++
...efinedWrappedFloatRuleProto2OrBuilder.java | 26 +
.../PredefinedWrappedFloatRuleProto3.java | 558 ++++++++++++++
...efinedWrappedFloatRuleProto3OrBuilder.java | 26 +
...PredefinedWrappedInt32RuleEdition2023.java | 558 ++++++++++++++
...dWrappedInt32RuleEdition2023OrBuilder.java | 26 +
.../PredefinedWrappedInt32RuleProto2.java | 558 ++++++++++++++
...efinedWrappedInt32RuleProto2OrBuilder.java | 26 +
.../PredefinedWrappedInt32RuleProto3.java | 558 ++++++++++++++
...efinedWrappedInt32RuleProto3OrBuilder.java | 26 +
...PredefinedWrappedInt64RuleEdition2023.java | 558 ++++++++++++++
...dWrappedInt64RuleEdition2023OrBuilder.java | 26 +
.../PredefinedWrappedInt64RuleProto2.java | 558 ++++++++++++++
...efinedWrappedInt64RuleProto2OrBuilder.java | 26 +
.../PredefinedWrappedInt64RuleProto3.java | 558 ++++++++++++++
...efinedWrappedInt64RuleProto3OrBuilder.java | 26 +
...redefinedWrappedStringRuleEdition2023.java | 558 ++++++++++++++
...WrappedStringRuleEdition2023OrBuilder.java | 26 +
.../PredefinedWrappedStringRuleProto2.java | 558 ++++++++++++++
...finedWrappedStringRuleProto2OrBuilder.java | 26 +
.../PredefinedWrappedStringRuleProto3.java | 558 ++++++++++++++
...finedWrappedStringRuleProto3OrBuilder.java | 26 +
...redefinedWrappedUInt32RuleEdition2023.java | 558 ++++++++++++++
...WrappedUInt32RuleEdition2023OrBuilder.java | 26 +
.../PredefinedWrappedUInt32RuleProto2.java | 558 ++++++++++++++
...finedWrappedUInt32RuleProto2OrBuilder.java | 26 +
.../PredefinedWrappedUInt32RuleProto3.java | 558 ++++++++++++++
...finedWrappedUInt32RuleProto3OrBuilder.java | 26 +
...redefinedWrappedUInt64RuleEdition2023.java | 558 ++++++++++++++
...WrappedUInt64RuleEdition2023OrBuilder.java | 26 +
.../PredefinedWrappedUInt64RuleProto2.java | 558 ++++++++++++++
...finedWrappedUInt64RuleProto2OrBuilder.java | 26 +
.../PredefinedWrappedUInt64RuleProto3.java | 558 ++++++++++++++
...finedWrappedUInt64RuleProto3OrBuilder.java | 26 +
...ardPredefinedAndCustomRuleEdition2023.java | 18 +-
...inedAndCustomRuleEdition2023OrBuilder.java | 4 +-
...StandardPredefinedAndCustomRuleProto2.java | 18 +-
...redefinedAndCustomRuleProto2OrBuilder.java | 4 +-
...StandardPredefinedAndCustomRuleProto3.java | 14 +-
...redefinedAndCustomRuleProto3OrBuilder.java | 2 +-
gradle.properties | 2 +-
.../internal/constraints/ConstraintCache.java | 2 +-
.../constraints/DescriptorMappings.java | 15 +-
126 files changed, 37379 insertions(+), 488 deletions(-)
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt64RuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBoolRuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedBytesRuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedDoubleRuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedFloatRuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt32RuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedInt64RuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedStringRuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt32RuleProto3OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleEdition2023.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleEdition2023OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto2.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto2OrBuilder.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto3.java
create mode 100644 conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedWrappedUInt64RuleProto3OrBuilder.java
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleEdition2023.java
index f9ef5be3..c1499a4c 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleEdition2023.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleEdition2023.java
@@ -47,12 +47,12 @@ public interface NestedOrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return Whether the c field is set.
*/
boolean hasC();
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return The c.
*/
int getC();
@@ -98,7 +98,7 @@ private Nested() {
public static final int C_FIELD_NUMBER = 1;
private int c_ = 0;
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return Whether the c field is set.
*/
@java.lang.Override
@@ -106,7 +106,7 @@ public boolean hasC() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return The c.
*/
@java.lang.Override
@@ -129,7 +129,7 @@ public final boolean isInitialized() {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
- output.writeInt32(1, c_);
+ output.writeSInt32(1, c_);
}
getUnknownFields().writeTo(output);
}
@@ -142,7 +142,7 @@ public int getSerializedSize() {
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, c_);
+ .computeSInt32Size(1, c_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -394,7 +394,7 @@ public Builder mergeFrom(
done = true;
break;
case 8: {
- c_ = input.readInt32();
+ c_ = input.readSInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
@@ -417,7 +417,7 @@ public Builder mergeFrom(
private int c_ ;
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return Whether the c field is set.
*/
@java.lang.Override
@@ -425,7 +425,7 @@ public boolean hasC() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return The c.
*/
@java.lang.Override
@@ -433,7 +433,7 @@ public int getC() {
return c_;
}
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @param value The c to set.
* @return This builder for chaining.
*/
@@ -445,7 +445,7 @@ public Builder setC(int value) {
return this;
}
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return This builder for chaining.
*/
public Builder clearC() {
@@ -510,7 +510,7 @@ public build.buf.validate.conformance.cases.PredefinedAndCustomRuleEdition2023.N
public static final int A_FIELD_NUMBER = 1;
private int a_ = 0;
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return Whether the a field is set.
*/
@java.lang.Override
@@ -518,7 +518,7 @@ public boolean hasA() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return The a.
*/
@java.lang.Override
@@ -567,7 +567,7 @@ public final boolean isInitialized() {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
- output.writeInt32(1, a_);
+ output.writeSInt32(1, a_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getB());
@@ -583,7 +583,7 @@ public int getSerializedSize() {
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, a_);
+ .computeSInt32Size(1, a_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
@@ -868,7 +868,7 @@ public Builder mergeFrom(
done = true;
break;
case 8: {
- a_ = input.readInt32();
+ a_ = input.readSInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
@@ -898,7 +898,7 @@ public Builder mergeFrom(
private int a_ ;
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return Whether the a field is set.
*/
@java.lang.Override
@@ -906,7 +906,7 @@ public boolean hasA() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return The a.
*/
@java.lang.Override
@@ -914,7 +914,7 @@ public int getA() {
return a_;
}
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @param value The a to set.
* @return This builder for chaining.
*/
@@ -926,7 +926,7 @@ public Builder setA(int value) {
return this;
}
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return This builder for chaining.
*/
public Builder clearA() {
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleEdition2023OrBuilder.java
index 1b5ddeef..c9dcb56e 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleEdition2023OrBuilder.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleEdition2023OrBuilder.java
@@ -10,12 +10,12 @@ public interface PredefinedAndCustomRuleEdition2023OrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return Whether the a field is set.
*/
boolean hasA();
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return The a.
*/
int getA();
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto2.java
index a870fb8a..7b2047e7 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto2.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto2.java
@@ -47,12 +47,12 @@ public interface NestedOrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * optional int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return Whether the c field is set.
*/
boolean hasC();
/**
- * optional int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return The c.
*/
int getC();
@@ -98,7 +98,7 @@ private Nested() {
public static final int C_FIELD_NUMBER = 1;
private int c_ = 0;
/**
- * optional int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return Whether the c field is set.
*/
@java.lang.Override
@@ -106,7 +106,7 @@ public boolean hasC() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * optional int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return The c.
*/
@java.lang.Override
@@ -129,7 +129,7 @@ public final boolean isInitialized() {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
- output.writeInt32(1, c_);
+ output.writeSInt32(1, c_);
}
getUnknownFields().writeTo(output);
}
@@ -142,7 +142,7 @@ public int getSerializedSize() {
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, c_);
+ .computeSInt32Size(1, c_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -394,7 +394,7 @@ public Builder mergeFrom(
done = true;
break;
case 8: {
- c_ = input.readInt32();
+ c_ = input.readSInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
@@ -417,7 +417,7 @@ public Builder mergeFrom(
private int c_ ;
/**
- * optional int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return Whether the c field is set.
*/
@java.lang.Override
@@ -425,7 +425,7 @@ public boolean hasC() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * optional int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return The c.
*/
@java.lang.Override
@@ -433,7 +433,7 @@ public int getC() {
return c_;
}
/**
- * optional int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @param value The c to set.
* @return This builder for chaining.
*/
@@ -445,7 +445,7 @@ public Builder setC(int value) {
return this;
}
/**
- * optional int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * optional sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return This builder for chaining.
*/
public Builder clearC() {
@@ -510,7 +510,7 @@ public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto2.Nested
public static final int A_FIELD_NUMBER = 1;
private int a_ = 0;
/**
- * optional int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return Whether the a field is set.
*/
@java.lang.Override
@@ -518,7 +518,7 @@ public boolean hasA() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * optional int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return The a.
*/
@java.lang.Override
@@ -567,7 +567,7 @@ public final boolean isInitialized() {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
- output.writeInt32(1, a_);
+ output.writeSInt32(1, a_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getB());
@@ -583,7 +583,7 @@ public int getSerializedSize() {
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, a_);
+ .computeSInt32Size(1, a_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
@@ -868,7 +868,7 @@ public Builder mergeFrom(
done = true;
break;
case 8: {
- a_ = input.readInt32();
+ a_ = input.readSInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
@@ -898,7 +898,7 @@ public Builder mergeFrom(
private int a_ ;
/**
- * optional int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return Whether the a field is set.
*/
@java.lang.Override
@@ -906,7 +906,7 @@ public boolean hasA() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
- * optional int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return The a.
*/
@java.lang.Override
@@ -914,7 +914,7 @@ public int getA() {
return a_;
}
/**
- * optional int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @param value The a to set.
* @return This builder for chaining.
*/
@@ -926,7 +926,7 @@ public Builder setA(int value) {
return this;
}
/**
- * optional int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return This builder for chaining.
*/
public Builder clearA() {
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto2OrBuilder.java
index d1454c84..3dbc1d10 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto2OrBuilder.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto2OrBuilder.java
@@ -10,12 +10,12 @@ public interface PredefinedAndCustomRuleProto2OrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * optional int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return Whether the a field is set.
*/
boolean hasA();
/**
- * optional int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * optional sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return The a.
*/
int getA();
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto3.java
index 9b9fa9d2..c2733fc8 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto3.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto3.java
@@ -47,7 +47,7 @@ public interface NestedOrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return The c.
*/
int getC();
@@ -92,7 +92,7 @@ private Nested() {
public static final int C_FIELD_NUMBER = 1;
private int c_ = 0;
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return The c.
*/
@java.lang.Override
@@ -115,7 +115,7 @@ public final boolean isInitialized() {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (c_ != 0) {
- output.writeInt32(1, c_);
+ output.writeSInt32(1, c_);
}
getUnknownFields().writeTo(output);
}
@@ -128,7 +128,7 @@ public int getSerializedSize() {
size = 0;
if (c_ != 0) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, c_);
+ .computeSInt32Size(1, c_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
@@ -372,7 +372,7 @@ public Builder mergeFrom(
done = true;
break;
case 8: {
- c_ = input.readInt32();
+ c_ = input.readSInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
@@ -395,7 +395,7 @@ public Builder mergeFrom(
private int c_ ;
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return The c.
*/
@java.lang.Override
@@ -403,7 +403,7 @@ public int getC() {
return c_;
}
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @param value The c to set.
* @return This builder for chaining.
*/
@@ -415,7 +415,7 @@ public Builder setC(int value) {
return this;
}
/**
- * int32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
+ * sint32 c = 1 [json_name = "c", (.buf.validate.field) = { ... }
* @return This builder for chaining.
*/
public Builder clearC() {
@@ -480,7 +480,7 @@ public build.buf.validate.conformance.cases.PredefinedAndCustomRuleProto3.Nested
public static final int A_FIELD_NUMBER = 1;
private int a_ = 0;
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return The a.
*/
@java.lang.Override
@@ -529,7 +529,7 @@ public final boolean isInitialized() {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (a_ != 0) {
- output.writeInt32(1, a_);
+ output.writeSInt32(1, a_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getB());
@@ -545,7 +545,7 @@ public int getSerializedSize() {
size = 0;
if (a_ != 0) {
size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(1, a_);
+ .computeSInt32Size(1, a_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
@@ -824,7 +824,7 @@ public Builder mergeFrom(
done = true;
break;
case 8: {
- a_ = input.readInt32();
+ a_ = input.readSInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
@@ -854,7 +854,7 @@ public Builder mergeFrom(
private int a_ ;
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return The a.
*/
@java.lang.Override
@@ -862,7 +862,7 @@ public int getA() {
return a_;
}
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @param value The a to set.
* @return This builder for chaining.
*/
@@ -874,7 +874,7 @@ public Builder setA(int value) {
return this;
}
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return This builder for chaining.
*/
public Builder clearA() {
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto3OrBuilder.java
index 482f837d..6106a502 100644
--- a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto3OrBuilder.java
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedAndCustomRuleProto3OrBuilder.java
@@ -10,7 +10,7 @@ public interface PredefinedAndCustomRuleProto3OrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * int32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
+ * sint32 a = 1 [json_name = "a", (.buf.validate.field) = { ... }
* @return The a.
*/
int getA();
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleEdition2023.java
new file mode 100644
index 00000000..3e8889c0
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleEdition2023.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023}
+ */
+public final class PredefinedRepeatedWrappedBoolRuleEdition2023 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023)
+ PredefinedRepeatedWrappedBoolRuleEdition2023OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedBoolRuleEdition2023.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedBoolRuleEdition2023.newBuilder() to construct.
+ private PredefinedRepeatedWrappedBoolRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedBoolRuleEdition2023() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.BoolValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.BoolValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.BoolValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.BoolValue m =
+ input.readMessage(
+ com.google.protobuf.BoolValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.BoolValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.BoolValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.BoolValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.BoolValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.BoolValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.BoolValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.BoolValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.BoolValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.BoolValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.BoolValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedBoolRuleEdition2023 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleEdition2023OrBuilder.java
new file mode 100644
index 00000000..1bb53d41
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleEdition2023OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedBoolRuleEdition2023OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleEdition2023)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.BoolValue getVal(int index);
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.BoolValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.BoolValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto2.java
new file mode 100644
index 00000000..c5ddf8fc
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto2.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2}
+ */
+public final class PredefinedRepeatedWrappedBoolRuleProto2 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2)
+ PredefinedRepeatedWrappedBoolRuleProto2OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedBoolRuleProto2.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedBoolRuleProto2.newBuilder() to construct.
+ private PredefinedRepeatedWrappedBoolRuleProto2(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedBoolRuleProto2() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.BoolValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.BoolValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.BoolValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.BoolValue m =
+ input.readMessage(
+ com.google.protobuf.BoolValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.BoolValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.BoolValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.BoolValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.BoolValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.BoolValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.BoolValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.BoolValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.BoolValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.BoolValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.BoolValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedBoolRuleProto2 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto2OrBuilder.java
new file mode 100644
index 00000000..e2493d3e
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto2OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedBoolRuleProto2OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto2)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.BoolValue getVal(int index);
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.BoolValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.BoolValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto3.java
new file mode 100644
index 00000000..7d7bd9f9
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto3.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3}
+ */
+public final class PredefinedRepeatedWrappedBoolRuleProto3 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3)
+ PredefinedRepeatedWrappedBoolRuleProto3OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedBoolRuleProto3.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedBoolRuleProto3.newBuilder() to construct.
+ private PredefinedRepeatedWrappedBoolRuleProto3(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedBoolRuleProto3() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.BoolValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.BoolValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.BoolValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBoolRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.BoolValue m =
+ input.readMessage(
+ com.google.protobuf.BoolValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.BoolValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.BoolValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.BoolValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.BoolValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.BoolValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.BoolValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.BoolValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.BoolValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.BoolValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BoolValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.BoolValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedBoolRuleProto3 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto3OrBuilder.java
new file mode 100644
index 00000000..ebd1fde7
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBoolRuleProto3OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedBoolRuleProto3OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedBoolRuleProto3)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.BoolValue getVal(int index);
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.BoolValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.BoolValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.BoolValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleEdition2023.java
new file mode 100644
index 00000000..cc22c320
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleEdition2023.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023}
+ */
+public final class PredefinedRepeatedWrappedBytesRuleEdition2023 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023)
+ PredefinedRepeatedWrappedBytesRuleEdition2023OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedBytesRuleEdition2023.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedBytesRuleEdition2023.newBuilder() to construct.
+ private PredefinedRepeatedWrappedBytesRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedBytesRuleEdition2023() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.BytesValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.BytesValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.BytesValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.BytesValue m =
+ input.readMessage(
+ com.google.protobuf.BytesValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.BytesValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.BytesValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.BytesValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.BytesValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.BytesValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.BytesValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.BytesValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.BytesValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.BytesValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.BytesValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedBytesRuleEdition2023 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleEdition2023OrBuilder.java
new file mode 100644
index 00000000..8bcae598
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleEdition2023OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedBytesRuleEdition2023OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleEdition2023)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.BytesValue getVal(int index);
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.BytesValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.BytesValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto2.java
new file mode 100644
index 00000000..400910e0
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto2.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2}
+ */
+public final class PredefinedRepeatedWrappedBytesRuleProto2 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2)
+ PredefinedRepeatedWrappedBytesRuleProto2OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedBytesRuleProto2.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedBytesRuleProto2.newBuilder() to construct.
+ private PredefinedRepeatedWrappedBytesRuleProto2(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedBytesRuleProto2() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.BytesValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.BytesValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.BytesValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.BytesValue m =
+ input.readMessage(
+ com.google.protobuf.BytesValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.BytesValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.BytesValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.BytesValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.BytesValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.BytesValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.BytesValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.BytesValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.BytesValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.BytesValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.BytesValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedBytesRuleProto2 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto2OrBuilder.java
new file mode 100644
index 00000000..559abc07
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto2OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedBytesRuleProto2OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto2)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.BytesValue getVal(int index);
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.BytesValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.BytesValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto3.java
new file mode 100644
index 00000000..b629d585
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto3.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3}
+ */
+public final class PredefinedRepeatedWrappedBytesRuleProto3 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3)
+ PredefinedRepeatedWrappedBytesRuleProto3OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedBytesRuleProto3.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedBytesRuleProto3.newBuilder() to construct.
+ private PredefinedRepeatedWrappedBytesRuleProto3(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedBytesRuleProto3() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.BytesValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.BytesValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.BytesValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedBytesRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.BytesValue m =
+ input.readMessage(
+ com.google.protobuf.BytesValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.BytesValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.BytesValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.BytesValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.BytesValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.BytesValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.BytesValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.BytesValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.BytesValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.BytesValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.BytesValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.BytesValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.BytesValue, com.google.protobuf.BytesValue.Builder, com.google.protobuf.BytesValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedBytesRuleProto3 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto3OrBuilder.java
new file mode 100644
index 00000000..1b1d865c
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedBytesRuleProto3OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedBytesRuleProto3OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedBytesRuleProto3)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.BytesValue getVal(int index);
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.BytesValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.BytesValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.BytesValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleEdition2023.java
new file mode 100644
index 00000000..92513b6a
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleEdition2023.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023}
+ */
+public final class PredefinedRepeatedWrappedDoubleRuleEdition2023 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023)
+ PredefinedRepeatedWrappedDoubleRuleEdition2023OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedDoubleRuleEdition2023.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedDoubleRuleEdition2023.newBuilder() to construct.
+ private PredefinedRepeatedWrappedDoubleRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedDoubleRuleEdition2023() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.DoubleValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.DoubleValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.DoubleValue m =
+ input.readMessage(
+ com.google.protobuf.DoubleValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.DoubleValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.DoubleValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.DoubleValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.DoubleValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.DoubleValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.DoubleValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.DoubleValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.DoubleValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.DoubleValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.DoubleValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedDoubleRuleEdition2023 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleEdition2023OrBuilder.java
new file mode 100644
index 00000000..593f34d6
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleEdition2023OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedDoubleRuleEdition2023OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleEdition2023)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.DoubleValue getVal(int index);
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.DoubleValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto2.java
new file mode 100644
index 00000000..b09ecee8
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto2.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2}
+ */
+public final class PredefinedRepeatedWrappedDoubleRuleProto2 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2)
+ PredefinedRepeatedWrappedDoubleRuleProto2OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedDoubleRuleProto2.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedDoubleRuleProto2.newBuilder() to construct.
+ private PredefinedRepeatedWrappedDoubleRuleProto2(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedDoubleRuleProto2() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.DoubleValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.DoubleValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.DoubleValue m =
+ input.readMessage(
+ com.google.protobuf.DoubleValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.DoubleValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.DoubleValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.DoubleValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.DoubleValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.DoubleValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.DoubleValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.DoubleValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.DoubleValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.DoubleValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.DoubleValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedDoubleRuleProto2 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto2OrBuilder.java
new file mode 100644
index 00000000..11a30ef0
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto2OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedDoubleRuleProto2OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto2)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.DoubleValue getVal(int index);
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.DoubleValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto3.java
new file mode 100644
index 00000000..b0352656
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto3.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3}
+ */
+public final class PredefinedRepeatedWrappedDoubleRuleProto3 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3)
+ PredefinedRepeatedWrappedDoubleRuleProto3OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedDoubleRuleProto3.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedDoubleRuleProto3.newBuilder() to construct.
+ private PredefinedRepeatedWrappedDoubleRuleProto3(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedDoubleRuleProto3() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.DoubleValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.DoubleValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedDoubleRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.DoubleValue m =
+ input.readMessage(
+ com.google.protobuf.DoubleValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.DoubleValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.DoubleValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.DoubleValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.DoubleValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.DoubleValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.DoubleValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.DoubleValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.DoubleValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.DoubleValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.DoubleValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.DoubleValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedDoubleRuleProto3 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto3OrBuilder.java
new file mode 100644
index 00000000..f740ecfa
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedDoubleRuleProto3OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedDoubleRuleProto3OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedDoubleRuleProto3)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.DoubleValue getVal(int index);
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.DoubleValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.DoubleValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.DoubleValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleEdition2023.java
new file mode 100644
index 00000000..8fc152db
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleEdition2023.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023}
+ */
+public final class PredefinedRepeatedWrappedFloatRuleEdition2023 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023)
+ PredefinedRepeatedWrappedFloatRuleEdition2023OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedFloatRuleEdition2023.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedFloatRuleEdition2023.newBuilder() to construct.
+ private PredefinedRepeatedWrappedFloatRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedFloatRuleEdition2023() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.FloatValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.FloatValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.FloatValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.FloatValue m =
+ input.readMessage(
+ com.google.protobuf.FloatValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.FloatValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.FloatValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.FloatValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.FloatValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.FloatValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.FloatValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.FloatValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.FloatValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.FloatValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.FloatValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedFloatRuleEdition2023 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleEdition2023OrBuilder.java
new file mode 100644
index 00000000..96cf876f
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleEdition2023OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedFloatRuleEdition2023OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleEdition2023)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.FloatValue getVal(int index);
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.FloatValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.FloatValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto2.java
new file mode 100644
index 00000000..b7ab93a3
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto2.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2}
+ */
+public final class PredefinedRepeatedWrappedFloatRuleProto2 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2)
+ PredefinedRepeatedWrappedFloatRuleProto2OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedFloatRuleProto2.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedFloatRuleProto2.newBuilder() to construct.
+ private PredefinedRepeatedWrappedFloatRuleProto2(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedFloatRuleProto2() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.FloatValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.FloatValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.FloatValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.FloatValue m =
+ input.readMessage(
+ com.google.protobuf.FloatValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.FloatValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.FloatValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.FloatValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.FloatValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.FloatValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.FloatValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.FloatValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.FloatValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.FloatValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.FloatValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedFloatRuleProto2 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto2OrBuilder.java
new file mode 100644
index 00000000..cab9d841
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto2OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedFloatRuleProto2OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto2)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.FloatValue getVal(int index);
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.FloatValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.FloatValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto3.java
new file mode 100644
index 00000000..9b93c179
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto3.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3}
+ */
+public final class PredefinedRepeatedWrappedFloatRuleProto3 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3)
+ PredefinedRepeatedWrappedFloatRuleProto3OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedFloatRuleProto3.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedFloatRuleProto3.newBuilder() to construct.
+ private PredefinedRepeatedWrappedFloatRuleProto3(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedFloatRuleProto3() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.FloatValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.FloatValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.FloatValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedFloatRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.FloatValue m =
+ input.readMessage(
+ com.google.protobuf.FloatValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.FloatValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.FloatValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.FloatValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.FloatValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.FloatValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.FloatValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.FloatValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.FloatValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.FloatValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.FloatValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.FloatValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.FloatValue, com.google.protobuf.FloatValue.Builder, com.google.protobuf.FloatValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedFloatRuleProto3 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto3OrBuilder.java
new file mode 100644
index 00000000..b7f2a1b4
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedFloatRuleProto3OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedFloatRuleProto3OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedFloatRuleProto3)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.FloatValue getVal(int index);
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.FloatValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.FloatValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.FloatValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleEdition2023.java
new file mode 100644
index 00000000..a72dc9e9
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleEdition2023.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023}
+ */
+public final class PredefinedRepeatedWrappedInt32RuleEdition2023 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023)
+ PredefinedRepeatedWrappedInt32RuleEdition2023OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedInt32RuleEdition2023.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedInt32RuleEdition2023.newBuilder() to construct.
+ private PredefinedRepeatedWrappedInt32RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedInt32RuleEdition2023() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.Int32ValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.Int32Value getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.Int32Value m =
+ input.readMessage(
+ com.google.protobuf.Int32Value.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32Value getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.Int32Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.Int32Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.Int32Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.Int32Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.Int32Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.Int32Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.Int32Value> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32Value.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.Int32ValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32Value.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.Int32Value.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32Value.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.Int32Value.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedInt32RuleEdition2023 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleEdition2023OrBuilder.java
new file mode 100644
index 00000000..460afbb9
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleEdition2023OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedInt32RuleEdition2023OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleEdition2023)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.Int32Value getVal(int index);
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.Int32ValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto2.java
new file mode 100644
index 00000000..bbadddcb
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto2.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2}
+ */
+public final class PredefinedRepeatedWrappedInt32RuleProto2 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2)
+ PredefinedRepeatedWrappedInt32RuleProto2OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedInt32RuleProto2.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedInt32RuleProto2.newBuilder() to construct.
+ private PredefinedRepeatedWrappedInt32RuleProto2(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedInt32RuleProto2() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.Int32ValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.Int32Value getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.Int32Value m =
+ input.readMessage(
+ com.google.protobuf.Int32Value.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32Value getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.Int32Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.Int32Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.Int32Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.Int32Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.Int32Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.Int32Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.Int32Value> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32Value.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.Int32ValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32Value.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.Int32Value.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32Value.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.Int32Value.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedInt32RuleProto2 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto2OrBuilder.java
new file mode 100644
index 00000000..043fb9ee
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto2OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedInt32RuleProto2OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto2)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.Int32Value getVal(int index);
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.Int32ValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto3.java
new file mode 100644
index 00000000..9a65ae91
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto3.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3}
+ */
+public final class PredefinedRepeatedWrappedInt32RuleProto3 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3)
+ PredefinedRepeatedWrappedInt32RuleProto3OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedInt32RuleProto3.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedInt32RuleProto3.newBuilder() to construct.
+ private PredefinedRepeatedWrappedInt32RuleProto3(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedInt32RuleProto3() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.Int32ValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.Int32Value getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt32RuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.Int32Value m =
+ input.readMessage(
+ com.google.protobuf.Int32Value.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32Value getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.Int32Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.Int32Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.Int32Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.Int32Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.Int32Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.Int32Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.Int32Value> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32Value.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.Int32ValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32Value.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.Int32Value.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int32Value.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.Int32Value.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedInt32RuleProto3 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto3OrBuilder.java
new file mode 100644
index 00000000..ab05232a
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt32RuleProto3OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedInt32RuleProto3OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt32RuleProto3)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.Int32Value getVal(int index);
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.Int32ValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.Int32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.Int32ValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleEdition2023.java
new file mode 100644
index 00000000..aa7afe81
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleEdition2023.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023}
+ */
+public final class PredefinedRepeatedWrappedInt64RuleEdition2023 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023)
+ PredefinedRepeatedWrappedInt64RuleEdition2023OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedInt64RuleEdition2023.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedInt64RuleEdition2023.newBuilder() to construct.
+ private PredefinedRepeatedWrappedInt64RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedInt64RuleEdition2023() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.Int64ValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.Int64Value getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.Int64Value m =
+ input.readMessage(
+ com.google.protobuf.Int64Value.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64Value getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.Int64Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.Int64Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.Int64Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.Int64Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.Int64Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.Int64Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.Int64Value> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64Value.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.Int64ValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64Value.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.Int64Value.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64Value.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.Int64Value.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedInt64RuleEdition2023 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleEdition2023OrBuilder.java
new file mode 100644
index 00000000..3b231af3
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleEdition2023OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedInt64RuleEdition2023OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleEdition2023)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.Int64Value getVal(int index);
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.Int64ValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto2.java
new file mode 100644
index 00000000..93bf8be9
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto2.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2}
+ */
+public final class PredefinedRepeatedWrappedInt64RuleProto2 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2)
+ PredefinedRepeatedWrappedInt64RuleProto2OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedInt64RuleProto2.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedInt64RuleProto2.newBuilder() to construct.
+ private PredefinedRepeatedWrappedInt64RuleProto2(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedInt64RuleProto2() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.Int64ValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.Int64Value getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.Int64Value m =
+ input.readMessage(
+ com.google.protobuf.Int64Value.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64Value getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.Int64Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.Int64Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.Int64Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.Int64Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.Int64Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.Int64Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.Int64Value> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64Value.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.Int64ValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64Value.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.Int64Value.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64Value.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.Int64Value.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedInt64RuleProto2 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto2OrBuilder.java
new file mode 100644
index 00000000..e217b753
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto2OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedInt64RuleProto2OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto2)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.Int64Value getVal(int index);
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.Int64ValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto3.java
new file mode 100644
index 00000000..f9c2f554
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto3.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3}
+ */
+public final class PredefinedRepeatedWrappedInt64RuleProto3 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3)
+ PredefinedRepeatedWrappedInt64RuleProto3OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedInt64RuleProto3.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedInt64RuleProto3.newBuilder() to construct.
+ private PredefinedRepeatedWrappedInt64RuleProto3(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedInt64RuleProto3() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.Int64ValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.Int64Value getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedInt64RuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.Int64Value m =
+ input.readMessage(
+ com.google.protobuf.Int64Value.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64Value getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.Int64Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.Int64Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.Int64Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.Int64Value value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.Int64Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.Int64Value.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.Int64Value> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64Value.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.Int64ValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64Value.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.Int64Value.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.Int64Value.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.Int64Value.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedInt64RuleProto3 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto3OrBuilder.java
new file mode 100644
index 00000000..f635c6c0
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedInt64RuleProto3OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedInt64RuleProto3OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedInt64RuleProto3)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.Int64Value getVal(int index);
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.Int64ValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.Int64Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.Int64ValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleEdition2023.java
new file mode 100644
index 00000000..414b36d9
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleEdition2023.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023}
+ */
+public final class PredefinedRepeatedWrappedStringRuleEdition2023 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023)
+ PredefinedRepeatedWrappedStringRuleEdition2023OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedStringRuleEdition2023.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedStringRuleEdition2023.newBuilder() to construct.
+ private PredefinedRepeatedWrappedStringRuleEdition2023(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedStringRuleEdition2023() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.StringValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.StringValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.StringValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.StringValue m =
+ input.readMessage(
+ com.google.protobuf.StringValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.StringValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.StringValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.StringValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.StringValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.StringValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.StringValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.StringValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.StringValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.StringValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.StringValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedStringRuleEdition2023 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleEdition2023OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleEdition2023OrBuilder.java
new file mode 100644
index 00000000..608663db
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleEdition2023OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedStringRuleEdition2023OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleEdition2023)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.StringValue getVal(int index);
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.StringValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.StringValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto2.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto2.java
new file mode 100644
index 00000000..9b60609d
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto2.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2}
+ */
+public final class PredefinedRepeatedWrappedStringRuleProto2 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2)
+ PredefinedRepeatedWrappedStringRuleProto2OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedStringRuleProto2.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedStringRuleProto2.newBuilder() to construct.
+ private PredefinedRepeatedWrappedStringRuleProto2(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedStringRuleProto2() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.StringValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.StringValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.StringValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto2_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto2Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto2_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.StringValue m =
+ input.readMessage(
+ com.google.protobuf.StringValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.StringValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.StringValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.StringValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.StringValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.StringValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.StringValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.StringValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.StringValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.StringValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.StringValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedStringRuleProto2 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto2OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto2OrBuilder.java
new file mode 100644
index 00000000..fa58ec05
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto2OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto2.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedStringRuleProto2OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto2)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.StringValue getVal(int index);
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.StringValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.StringValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto3.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto3.java
new file mode 100644
index 00000000..c93c955d
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto3.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3}
+ */
+public final class PredefinedRepeatedWrappedStringRuleProto3 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3)
+ PredefinedRepeatedWrappedStringRuleProto3OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedStringRuleProto3.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedStringRuleProto3.newBuilder() to construct.
+ private PredefinedRepeatedWrappedStringRuleProto3(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedStringRuleProto3() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.protobuf.StringValueOrBuilder>
+ getValOrBuilderList() {
+ return val_;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public int getValCount() {
+ return val_.size();
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.StringValue getVal(int index) {
+ return val_.get(index);
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public com.google.protobuf.StringValueOrBuilder getValOrBuilder(
+ int index) {
+ return val_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < val_.size(); i++) {
+ output.writeMessage(1, val_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < val_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, val_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3)) {
+ return super.equals(obj);
+ }
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 other = (build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3) obj;
+
+ if (!getValList()
+ .equals(other.getValList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getValCount() > 0) {
+ hash = (37 * hash) + VAL_FIELD_NUMBER;
+ hash = (53 * hash) + getValList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3)
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3OrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto3_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3.Builder.class);
+ }
+
+ // Construct using build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ } else {
+ val_ = null;
+ valBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProto3Proto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedStringRuleProto3_descriptor;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 getDefaultInstanceForType() {
+ return build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 build() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 buildPartial() {
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 result = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 result) {
+ if (valBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ val_ = java.util.Collections.unmodifiableList(val_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.val_ = val_;
+ } else {
+ result.val_ = valBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3) {
+ return mergeFrom((build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 other) {
+ if (other == build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3.getDefaultInstance()) return this;
+ if (valBuilder_ == null) {
+ if (!other.val_.isEmpty()) {
+ if (val_.isEmpty()) {
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureValIsMutable();
+ val_.addAll(other.val_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.val_.isEmpty()) {
+ if (valBuilder_.isEmpty()) {
+ valBuilder_.dispose();
+ valBuilder_ = null;
+ val_ = other.val_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ valBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getValFieldBuilder() : null;
+ } else {
+ valBuilder_.addAllMessages(other.val_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.StringValue m =
+ input.readMessage(
+ com.google.protobuf.StringValue.parser(),
+ extensionRegistry);
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(m);
+ } else {
+ valBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List val_ =
+ java.util.Collections.emptyList();
+ private void ensureValIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ val_ = new java.util.ArrayList(val_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> valBuilder_;
+
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List getValList() {
+ if (valBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(val_);
+ } else {
+ return valBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public int getValCount() {
+ if (valBuilder_ == null) {
+ return val_.size();
+ } else {
+ return valBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValue getVal(int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index);
+ } else {
+ return valBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.StringValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.set(index, value);
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder setVal(
+ int index, com.google.protobuf.StringValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(com.google.protobuf.StringValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.StringValue value) {
+ if (valBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValIsMutable();
+ val_.add(index, value);
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ com.google.protobuf.StringValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addVal(
+ int index, com.google.protobuf.StringValue.Builder builderForValue) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder addAllVal(
+ java.lang.Iterable extends com.google.protobuf.StringValue> values) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, val_);
+ onChanged();
+ } else {
+ valBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder clearVal() {
+ if (valBuilder_ == null) {
+ val_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public Builder removeVal(int index) {
+ if (valBuilder_ == null) {
+ ensureValIsMutable();
+ val_.remove(index);
+ onChanged();
+ } else {
+ valBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValue.Builder getValBuilder(
+ int index) {
+ return getValFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValueOrBuilder getValOrBuilder(
+ int index) {
+ if (valBuilder_ == null) {
+ return val_.get(index); } else {
+ return valBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List extends com.google.protobuf.StringValueOrBuilder>
+ getValOrBuilderList() {
+ if (valBuilder_ != null) {
+ return valBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(val_);
+ }
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValue.Builder addValBuilder() {
+ return getValFieldBuilder().addBuilder(
+ com.google.protobuf.StringValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public com.google.protobuf.StringValue.Builder addValBuilder(
+ int index) {
+ return getValFieldBuilder().addBuilder(
+ index, com.google.protobuf.StringValue.getDefaultInstance());
+ }
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ public java.util.List
+ getValBuilderList() {
+ return getValFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
+ getValFieldBuilder() {
+ if (valBuilder_ == null) {
+ valBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
+ val_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ val_ = null;
+ }
+ return valBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3)
+ }
+
+ // @@protoc_insertion_point(class_scope:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3)
+ private static final build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3();
+ }
+
+ public static build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PredefinedRepeatedWrappedStringRuleProto3 parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public build.buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3 getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+}
+
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto3OrBuilder.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto3OrBuilder.java
new file mode 100644
index 00000000..3473abf4
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedStringRuleProto3OrBuilder.java
@@ -0,0 +1,35 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto3.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+public interface PredefinedRepeatedWrappedStringRuleProto3OrBuilder extends
+ // @@protoc_insertion_point(interface_extends:buf.validate.conformance.cases.PredefinedRepeatedWrappedStringRuleProto3)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List
+ getValList();
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.StringValue getVal(int index);
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ int getValCount();
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ java.util.List extends com.google.protobuf.StringValueOrBuilder>
+ getValOrBuilderList();
+ /**
+ * repeated .google.protobuf.StringValue val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ com.google.protobuf.StringValueOrBuilder getValOrBuilder(
+ int index);
+}
diff --git a/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleEdition2023.java b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleEdition2023.java
new file mode 100644
index 00000000..2df06472
--- /dev/null
+++ b/conformance/src/main/java/build/buf/validate/conformance/cases/PredefinedRepeatedWrappedUInt32RuleEdition2023.java
@@ -0,0 +1,719 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// NO CHECKED-IN PROTOBUF GENCODE
+// source: buf/validate/conformance/cases/predefined_rules_proto_editions.proto
+// Protobuf Java Version: 4.28.3
+
+package build.buf.validate.conformance.cases;
+
+/**
+ * Protobuf type {@code buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023}
+ */
+public final class PredefinedRepeatedWrappedUInt32RuleEdition2023 extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023)
+ PredefinedRepeatedWrappedUInt32RuleEdition2023OrBuilder {
+private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ PredefinedRepeatedWrappedUInt32RuleEdition2023.class.getName());
+ }
+ // Use PredefinedRepeatedWrappedUInt32RuleEdition2023.newBuilder() to construct.
+ private PredefinedRepeatedWrappedUInt32RuleEdition2023(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PredefinedRepeatedWrappedUInt32RuleEdition2023() {
+ val_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleEdition2023_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return build.buf.validate.conformance.cases.PredefinedRulesProtoEditionsProto.internal_static_buf_validate_conformance_cases_PredefinedRepeatedWrappedUInt32RuleEdition2023_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023.class, build.buf.validate.conformance.cases.PredefinedRepeatedWrappedUInt32RuleEdition2023.Builder.class);
+ }
+
+ public static final int VAL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.List val_;
+ /**
+ * repeated .google.protobuf.UInt32Value val = 1 [json_name = "val", (.buf.validate.field) = { ... }
+ */
+ @java.lang.Override
+ public java.util.List getValList() {
+ return val_;
+ }
+ /**
+ *